package com.example.score.service;

import com.example.score.mapper.TeacherStarStudentMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TeacherStarStudentService {

    @Resource
    private TeacherStarStudentMapper teacherStarStudentMapper;

    public void star(Long teacherId, Long studentId) {
        teacherStarStudentMapper.star(teacherId,studentId);
    }

    public void unStar(Long teacherId, Long studentId) {
        teacherStarStudentMapper.unStar(teacherId,studentId);
    }

    public List<Long> starList(Long teacherId) {
        return teacherStarStudentMapper.starList(teacherId);
    }
}
